"""st URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin
import customer.views as v
urlpatterns = [
    url(r'^cm$', v.CustomInfo, name='客戶信息'),
    url(r'^cm/(?P<pk>[0-9]+)$', v.CustomInfopk, name='客戶信息'),

    url(r'^uf$', v.UploadFile, name=''),
    url(r'^uf/(?P<pk>[0-9]+)$', v.UploadFilepk, name='上传文件/附件'),


    url(r'^cp$', v.CustomerPaper, name='客户图纸'),
    url(r'^cp/(?P<pk>[0-9]+)$', v.CustomerPaperpk, name='客户图纸'),

    url(r'^cv/(?P<pk>[0-9]+)$', v.Version, name='客户图纸历史版本'),


    url(r'^df$', v.Draft_sp, name='客户草稿'),
    url(r'^df/(?P<pk>[0-9]+)$', v.Draftpk, name='客户草稿'),



    url(r'^pp$', v.Project_paper, name='工程图纸'),
    url(r'^pp/(?P<pk>[0-9]+)$', v.Project_paperpk, name='工程图纸'),

    # url(r'^dt$', v.Dev_type, name=''),
    # url(r'^dt/(?P<pk>[0-9]+)$', v.Dev_typepk, name='工程图纸'),

    url(r'^pv/(?P<pk>[0-9]+)$', v.Pro_Version, name='工程图纸历史版本'),

    url(r'^pd$', v.Pro_Draft_sp, name='工程图纸草稿'),
    url(r'^pd/(?P<pk>[0-9]+)$', v.Pro_Draftpk, name='工程图纸草稿'),

    url(r'^cc/(?P<pk>[0-9]+)$', v.Custter_Case, name='道具和专案'),

    url(r'^custter$', v.Custter_type, name='道具规格'),
    url(r'^case$', v.Case_name, name='专案名称'),

    url(r'^dt$', v.DevType, name='机型'),
    url(r'^dt/(?P<pk>[0-9]+)$', v.Dev_Typepk, name='机型'),

    url(r'^cpcustters/(?P<pk>[0-9]+)$', v.cp_custters_spec, name='對應客戶和工程裏面的刀具規格'),

]
